/**
 * Created by Sunshine on 2017/4/12.
 */

import util from './util'
let token = util.unparam(location.search).token;
window.token = token;
let host = location.protocol + '//' + location.host;
export default {
    //115环境
    // host:'http://115.29.39.62:9080',
    //正式环境
    // host:'https://ezone.upesn.com',

    //发布时自适应环境
    host:host,

    //个人七天步数
    getSevenDayPerStep:'/sports/api/ranking/range?token='+ window.token,
    //部门七天步数
    getSevenDayTeamStep:'/sports/api/ranking/rangebydep?token='+ window.token,
    //个人排名
    perListUrl:'/sports/api/ranking/list?token='+ window.token,
    //自己排名信息
    meUrl:'/sports/api/ranking/me?token='+ window.token,
    //各部门排名
    teamListUrl:'/sports/api/ranking/dep?token='+ window.token,
    //部门成员排名
    teamPerListUrl:'/sports/api/ranking/list?token='+ window.token,

    changeMyHomePageBackgroundUrl: '/sports/api/userinfo?token='+ window.token,
    changeTeamHomePageBackgroundUrl: '/sports/api/dept?token='+ window.token,
    //个人主页
    homePageUrl: '/sports/api/ranking/range?token='+ window.token,
    //点赞
    upVoteUrl: '/sports/api/ranking/upvote?token='+ window.token,
    //个人查询
    searchPerson:'/sports/api/ranking/search?token='+ window.token,
    //部门查询
    searchDep:'/sports/api/ranking/searchdep?token='+ window.token,
    // 是否开启友运动
    enable:'/sports/api/userinfo/enable?token='+ window.token,
    // 同步运动数据
    uploadData:'/sports/api/syncsteps?token='+ window.token,
    //用户信息
    userInfo:'/sports/api/userinfo?token='+ window.token,
    //部门人员排名
    deptRank:'/sports/api/ranking/list?token='+ window.token,
    //部门点赞
    deptUpVote:'/sports/api/ranking/upvotebydep?token='+ window.token,
    //个人点赞列表
    praiseList:'/sports/api/likelog?token='+ window.token,
    //邀请
    invite:'/sports/api/userinfo/invite?token=' + window.token,
    inviteOtherDep: '/sports/api/userinfo/invitenotdept?token=' + window.token,
    inviteMineDep: '/sports/api/userinfo/invite?token=' + window.token,
    inviteSearch: '/sports/api/userinfo/search?token=' + window.token,
    // 是否接收排行榜消息
    settingAcceptRankingMsg: '/sports/api/userinfo/isrankingmsg?token=' + window.token,
    // 是否接收朋友点赞消息
    settingAcceptLikeMsg: '/sports/api/userinfo/islikemsg?token=' + window.token,
    // 是否开启加入排行榜
    settingJoinRanking: '/sports/api/userinfo/isranking?token=' + window.token,
    // 停用所有功能
    settingDisableAllService: '/sports/api/userinfo/disable?token=' + window.token
};
